#ifndef _ItemEffect_H_
#define _ItemEffect_H_

#include "Move.h"



class ItemEffect : public Move
{

public:

	ItemEffect();
	~ItemEffect();

	bool Create( IDirect3DDevice9 *pkDevice, D3DXVECTOR3 Pos, DWORD Color );
	void Update( unsigned int dt );
	void UpdatePos( D3DXVECTOR3 Pos );
	void Render();
	void Release();

	bool GetDeleteTime() { return m_bDelete; }

protected:

	void MakeBuffer();
	void InitVB();
	void MakeTexcell();
	void ChangeTexcell( int Count );

	MYVERTEX	m_kVertices[4];
	D3DXVECTOR2	m_vUVTable[16][4];
	D3DXMATRIXA16	m_matworld;
	DWORD m_dColor;

	int m_iAddTime;
	int m_iUVCount;
	bool m_bDelete;


};





#endif // _ItemEffect_H_